import axios from '@/libs/api.request'

const prefix = '/web/freeTrain'
const FreeTrainApi = {
  pageResult(freeTrain, trainerId, trainCenterId) {
    return axios.request({
      url: prefix + '/pageResult/' + trainerId + '/' + trainCenterId,
      data: freeTrain,
      method: 'post'
    })
  },
  exportFreeRecordExcel(sportsRecord) {
    return axios.request({
      url: prefix + '/exportFreeRecordExcel',
      data: sportsRecord,
      method: 'post',
      responseType: 'blob'
    })
  },
}

export default FreeTrainApi
